<ul id="nav">
<?php
$controller=$this->controller;
$action=$this->action;
echo '
<li>
<ul class="navigation">
<li><a href="/control/settings/" title="">Settings</a></li>
<li><a href="/control/testimonials/" title="">Testimonials</a></li>
<li><a href="/control/scroller/" title="">Scroller</a></li>
<li><a href="/control/portfolio/edit/" title="">Portfolio</a></li>
<li><a href="/control/contact/edit/" title="">Contact</a></li>
</ul>';
echo '<a class="collapsed heading">About</a>
<ul class="navigation">
<li><a href="/control/about/edit/" title="">About</a></li>';
foreach ($this->subAbout as $row){
    echo '<li><a href="/control/sub-page/edit-pages/id/'.$row['id'].'" title=""> - - '.substr($row['name'],0,40).'</a></li>';
}
//Zend_Debug::dump($this->subAbout);exit();
echo '
</ul>
<a class="collapsed heading">Services</a>
<ul class="navigation">
<li><a href="/control/services/edit/" title="">Services</a></li>
';
foreach ($this->subServices as $row){
    echo '<li><a href="/control/sub-page/edit-pages/id/'.$row['id'].'" title=""> - - '.substr($row['name'],0,40).'</a></li>';
}
//Zend_Debug::dump($this->subAbout);exit();
echo '
</ul>
<a class="collapsed heading">News</a>
<ul class="navigation">
<li><a href="/control/news/edit/" title="">News</a></li>
';
foreach ($this->subNews as $row){
    echo '<li><a href="/control/sub-page/edit-pages/id/'.$row['id'].'" title=""> - - '.substr($row['name'],0,40).'</a></li>';
}
//Zend_Debug::dump($this->subAbout);exit();
echo '
</ul>
</li>'
;?>
</ul>